package com.yuer.rpc.thread;

/**
 *  实现Runnable接口，重写run()方法
 *  创建多线程:方法二
 */
public class MyThread2 implements Runnable{

    @Override
    public void run(){
        System.out.println("创建多线程方法二");
    }
    public static void main(String[] args) {
        MyThread2 thread=new MyThread2();
        Thread t=new Thread(thread);
        t.start();
        System.out.println("运行结束");
    }
}